import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/currency_search_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/currency_search_entity.g.dart';

@JsonSerializable()
class CurrencySearchEntity {
	List<CurrencySearchList>? list;

	CurrencySearchEntity();

	factory CurrencySearchEntity.fromJson(Map<String, dynamic> json) => $CurrencySearchEntityFromJson(json);

	Map<String, dynamic> toJson() => $CurrencySearchEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CurrencySearchList {
	int? id;
	String? name;
	String? symbol;
	@JSONField(name: "mytoken_id")
	String? mytokenId;
	@JSONField(name: "cmc_id")
	String? cmcId;
	@JSONField(name: "cmc_url")
	String? cmcUrl;
	@JSONField(name: "contract_address")
	String? contractAddress;
	String? logo;
	String? website;
	String? explorer;
	String? announcement;
	@JSONField(name: "message_board")
	String? messageBoard;
	int? rank;
	@JSONField(name: "price_usd")
	String? priceUsd;
	@JSONField(name: "price_cny")
	String? priceCny;
	@JSONField(name: "price_btc")
	String? priceBtc;
	@JSONField(name: "volume_usd_24h")
	String? volumeUsd24h;
	@JSONField(name: "market_cap_usd")
	String? marketCapUsd;
	@JSONField(name: "available_supply")
	int? availableSupply;
	@JSONField(name: "total_supply")
	int? totalSupply;
	@JSONField(name: "max_supply")
	int? maxSupply;
	@JSONField(name: "percent_change_1h")
	double? percentChange1h;
	@JSONField(name: "percent_change_24h")
	double? percentChange24h;
	@JSONField(name: "percent_change_7d")
	double? percentChange7d;
	@JSONField(name: "search_field")
	String? searchField;
	int? enabled;
	String? alias;
	String? wallet;
	@JSONField(name: "dc_type")
	int? dcType;
	@JSONField(name: "currency_level")
	int? currencyLevel;
	@JSONField(name: "is_can_rank")
	int? isCanRank;
	@JSONField(name: "market_value_index")
	String? marketValueIndex;
	@JSONField(name: "currency_composite_index")
	String? currencyCompositeIndex;
	@JSONField(name: "market_concert_index")
	String? marketConcertIndex;
	@JSONField(name: "search_news_keywords")
	String? searchNewsKeywords;

	CurrencySearchList();

	factory CurrencySearchList.fromJson(Map<String, dynamic> json) => $CurrencySearchListFromJson(json);

	Map<String, dynamic> toJson() => $CurrencySearchListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}